<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'FhLeraenController@showHtml');
    $router->post('/apis/uploads', 'HomeController@uploadTinymc');
    $router->resource("/about",'FhAboutController');
    $router->resource('/banner', 'FhBannerController');
    $router->resource('/category', 'FhCategoryController');
    $router->resource('/setting', 'FhSettingController');
    $router->resource('/product', 'FhProductController');
    $router->resource('/news', 'FhNewsController');
    $router->resource('/page', 'FhPageController');
    $router->resource('/resource', 'FhResourceController');
    $router->resource("/question",'FhQuestionController');
    $router->resource("/tags",'FhTagController');
    $router->resource("/feedback",'FhFeedbackController');
    $router->resource("/footer",'FhFooterController');
    $router->resource("/know",'FhKnowController');
    $router->resource("/indexProduct",'FhIndexController');
    $router->resource("/download",'FhDownloadController');
    $router->resource("/appicon",'FhIndexAppController');
    $router->resource("/lears",'FhLeraenController');
    $router->get("/lear",'FhLeraenController@showHtml');
    $router->get("/apis/top",'FhCategoryController@getTop');
    $router->get("/apis/getTag",'FhTagController@getTag');
    $router->get("/apis/getproduct",'FhProductController@get');
});
